
#include "FinerySneaker.h"
#include <iostream>

using namespace npDecorator;
using namespace std;


FinerySneaker::FinerySneaker() : PersonFinery()
{

}

FinerySneaker::~FinerySneaker()
{

}

FinerySneaker::FinerySneaker(const FinerySneaker& cpy) : PersonFinery(cpy)
{

}

FinerySneaker& FinerySneaker::operator=(const FinerySneaker& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        PersonFinery::operator=(asn);
        return *this;
    }
}

FinerySneaker* FinerySneaker::clone() const
{
    return new FinerySneaker(*this);
}

void FinerySneaker::show() const
{
    cout << "运动鞋";
    if (this->person)
    {
        this->person->show();
    }
}
